import request from '@/utils/request'

export function getStudentByPage(data = { pageNum: 1, pageSize: 100 }) {
  return request({
    url: '/info/student_search',
    method: 'post',
    data,
  })
}

export function getStudentById(id) {
  return request({
    url: '/info/student_find',
    method: 'post',
    data: {
      id,
    },
  })
}

export function createStudent(data) {
  return request({
    url: '/info/student_save',
    method: 'post',
    data,
  })
}

export function updateStudent(data) {
  return request({
    url: '/info/student_editsave',
    method: 'post',
    data,
  })
}

export function deleteStudent(data) {
  return request({
    url: '/info/student_del',
    method: 'post',
    data,
  })
}
